/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.blog.idao;

import java.sql.SQLException;
import java.util.List;
import org.blog.model.Comment;

/**
 *
 * @author danang
 */
public interface ICommentDAO {

    public int insert(Comment o) throws SQLException;

    public int update(int id, Comment o) throws SQLException;

    public int delete(int id) throws SQLException;

    public Comment getById(int id) throws SQLException;

    public List<Comment> getAll() throws SQLException;

    public List<Comment> getByTitleLike(String title) throws SQLException;

    public List<Comment> getByContentLike(String content) throws SQLException;
}
